<?php
/**
 * Created by PhpStorm.
 * User: dy
 * Date: 2019/12/26
 * Time: 15:55
 */
namespace app\common\enum;
use util\ArrayUtil;

class BaseEnum
{
    public static function getEnumIds(string $var):array {
        return array_keys(constant(static::class.'::'.$var));
    }
    public static function getEnumIdsToStr(string $var):string {
        return ArrayUtil::instance()->arrToStr(self::getEnumIds($var));
    }
}